//index.js
var util = require('../../utils/util.js')
 
Page({
  data: {
     data:{}
  },
  
  onLoad: function () {
    console.log('onLoad')
    var that = this
     util.loadData(function(res){
       console.log(res);
       var resp = res.data.responseData;
       console.log(resp);
       that.setData({
          data : resp
       });
     });
  },

    dirct: function(url) {
       wx.redirectTo({
          url: url
       })
     }
})
